package cn.b.sky.mes.andon.model;

import java.util.List;

import cn.b.sky.common.model.ImeCommon;

/**
 * 
 * <strong>Title : MessageRule.java<br></strong>
 * <strong>Package : cn.b.sky.mes.andon.model<br></strong>
 * <strong>Description : </strong>消息规则对象<br> 
 * <strong>Create on : 2016-10-17 下午02:49:27<br></strong>
 * <p>
 * @author JunLin.Yang<br>
 * @version <strong>v1.0.0</strong><br>
 */
public class MessageRule extends ImeCommon {

  /**
   * 暗灯类型编号
   */
  private String andonTypeCode;
  
  /**
   * 暗灯类型描述
   */
  private String andonTypeText;

  /**
   * 消息规则编号
   */
  private String ruleCode;

  /**
   * 锁定标志
   */
  private Integer lockFlag;

  /**
   * 描述
   */
  private String ruleText;
  
  /**
   * 是否选择所有ANDON
   */
  private Integer allAndonsFlag;
  
  /**
   * 规则条目集合
   */
  private List<MessageRuleItem> messageRuleItemList;
  
  /**
   * 消息规则暗灯分配对象集合
   */
  private List<MessageRuleAndonAssign> messageRuleAndonAssignList;

  public void preProcessingToStore() {
    this.ruleCode = this.ruleCode.toUpperCase();
  }
  
  public void setAndonTypeCode(String andonTypeCode) {
    this.andonTypeCode = andonTypeCode;
  }

  public String getAndonTypeCode() {
    return this.andonTypeCode;
  }

  public void setRuleCode(String ruleCode) {
    this.ruleCode = ruleCode;
  }

  public String getRuleCode() {
    return this.ruleCode;
  }

  public void setLockFlag(Integer lockFlag) {
    this.lockFlag = lockFlag;
  }

  public Integer getLockFlag() {
    return this.lockFlag;
  }

  public void setRuleText(String ruleText) {
    this.ruleText = ruleText;
  }

  public String getRuleText() {
    return this.ruleText;
  }

  public String getAndonTypeText() {
    return andonTypeText;
  }

  public void setAndonTypeText(String andonTypeText) {
    this.andonTypeText = andonTypeText;
  }

  public List<MessageRuleItem> getMessageRuleItemList() {
    return messageRuleItemList;
  }

  public void setMessageRuleItemList(List<MessageRuleItem> messageRuleItemList) {
    this.messageRuleItemList = messageRuleItemList;
  }

  public List<MessageRuleAndonAssign> getMessageRuleAndonAssignList() {
    return messageRuleAndonAssignList;
  }

  public void setMessageRuleAndonAssignList(List<MessageRuleAndonAssign> messageRuleAndonAssignList) {
    this.messageRuleAndonAssignList = messageRuleAndonAssignList;
  }

  public Integer getAllAndonsFlag() {
    return allAndonsFlag;
  }

  public void setAllAndonsFlag(Integer allAndonsFlag) {
    this.allAndonsFlag = allAndonsFlag;
  }

  
}